import {
    ref,
    getCurrentInstance,
    watch,
} from "vue";
export class ChangeStyleUtils {
    styleObjBoolean = ref<Boolean>(false)
    constructor() { }
    watchStatus() {
        const { proxy } = getCurrentInstance() as any;
        watch(
            () => proxy.$i18n.locale,
            (newVal) => {
                if (newVal === "arabic") {
                    this.styleObjBoolean.value = true;
                }
                if (newVal === "english") {
                    this.styleObjBoolean.value = false;
                }
                if (newVal === "chinese") {
                    this.styleObjBoolean.value = false;
                }
            },
            {
                deep: true,
            })
    }

}